//============ com.pengesoft.domain.PayRecord =============
import {DataPacket} from 'pengesoft-ng-lib';

export class PayRecord extends DataPacket {
    ActualMoney: number;
    IsPostpone: number;
    Coupon: number;
    OriginalPrice: number;
    DeadTime: Date|null;
    PayablePrice: number;
    Description: string;
    PayWay: number;
    CompanyAccount: string;
    Type: number;
    CustomerName: string;
    ActualTime: Date|null;
    CreateTime: Date|null;
    ContractId: string;
    EndTime: Date|null;
    Id: string;
    CustomerAccount: string;
    Status: number;
    constructor(opts: {
        ActualMoney?: number;
        IsPostpone?: number;
        Coupon?: number;
        OriginalPrice?: number;
        DeadTime?: Date;
        PayablePrice?: number;
        Description?: string;
        PayWay?: number;
        CompanyAccount?: string;
        Type?: number;
        CustomerName?: string;
        ActualTime?: Date;
        CreateTime?: Date;
        ContractId?: string;
        EndTime?: Date;
        Id?: string;
        CustomerAccount?: string;
        Status?: number;
    } = {}) {
        super();
        this.ActualMoney = opts.ActualMoney || 0;
        this.IsPostpone = opts.IsPostpone || 0;
        this.Coupon = opts.Coupon || 0;
        this.OriginalPrice = opts.OriginalPrice || 0;
        this.DeadTime = opts.DeadTime || null;
        this.PayablePrice = opts.PayablePrice || 0;
        this.Description = opts.Description || '';
        this.PayWay = opts.PayWay || 0;
        this.CompanyAccount = opts.CompanyAccount || '';
        this.Type = opts.Type || 0;
        this.CustomerName = opts.CustomerName || '';
        this.ActualTime = opts.ActualTime || null;
        this.CreateTime = opts.CreateTime || null;
        this.ContractId = opts.ContractId || '';
        this.EndTime = opts.EndTime || null;
        this.Id = opts.Id || '';
        this.CustomerAccount = opts.CustomerAccount || '';
        this.Status = opts.Status || 0;
    }
}

